package com.neutech.pha.controller;

import java.util.List;


import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neutech.pha.service.SgoryService;

@RestController
@RequestMapping("/sgory")
public class SgoryController {
	@Autowired
	SgoryService sgoryService;

	@RequestMapping("/getSgoryByTypeId")
	public List<Map<String, Object>> getSgoryByTypeId(String typeId){
//		System.out.println(typeId);
		List<Map<String, Object>> list = sgoryService.getSgoryByTypeId(typeId);
		return list;
		}
}